package com.kaixinff.qq.servlet;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kaixinff.kaixin001.util.KXUtil;
import com.kaixinff.qq.util.QQUtil;

@SuppressWarnings("serial")
public class GetVerifyImageServlet extends HttpServlet {
		
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		String url = QQUtil.HOST_URL + req.getRequestURI() + "?" + req.getQueryString();
		byte[] b = KXUtil.client.doGet(url, QQUtil.LOGIN_URL).getBytes();
		resp.setContentType("image/png");
		resp.getOutputStream().write(b);
	}
}
